java create list integer range

54

java create list integer range -

List<Integer> range = IntStream.rangeClosed(start, end)
    .boxed().collect(Collectors.toList());

Comments

Submit
0 Comments